{***************************************************************
    SpyGestion  Copyright (C) 2008 Christophe KOALI <nature2gas@gmail.com>
    
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
****************************************************************}
unit modTunnelTemplate;

interface

uses Classes,
     SysUtils,
     modTemplateMotor;


const
   TPL_COND_LOGINPAGE_PASSWORD_INVALID = 'COND_PWD_INVALID';



   // conditions commune pour chaque page du robot
   TPL_COND_ROBOT_PROFIL_IS_VALID     = 'COND_PROFIL_VALID';

   TPL_COND_ROBOT_PROFIL_PROXY_ACTIVE = 'COND_PROFIL_PROXY_ACTIVE';
   TPL_COND_ROBOT_PROFIL_PROXY_TYPE   = 'COND_PROFIL_PROXY_TYPE';
   TPL_COND_ROBOT_PROFIL_PROXY_IDENT_ACTIVE   = 'COND_PROFIL_PROXY_IDENTACTIVE';

   TPL_COND_ROBOT_PROFIL_NAV_GZIP    = 'COND_PROFIL_NAV_GZIP';


   // Variables commune pour chaque page du robot
   TPL_VAR_ROBOT_PROFIL_NICKNAME = 'CURR_NICKNAME';
   TPL_VAR_ROBOT_PROFIL_UNIVERS  = 'CURR_UNIVERS';

   TPL_VAR_ROBOT_PROFIL_POINTS_GLOBAL   = 'CURR_STATS_GLOBALES';
   TPL_VAR_ROBOT_PROFIL_POINTS_FLOTTES  = 'CURR_STATS_FLOTTES';
   TPL_COND_ROBOT_PROFIL_POINTS_GLOBAL   = 'COND_CURR_STATS_GLOBALES';
   TPL_COND_ROBOT_PROFIL_POINTS_FLOTTES  = 'COND_CURR_STATS_FLOTTES';



   TPL_VAR_ROBOT_PROFIL_ProxyHostname  = 'PROFIL_PROXY_HOST';
   TPL_VAR_ROBOT_PROFIL_ProxyPort      = 'PROFIL_PROXY_PORT';
   TPL_VAR_ROBOT_PROFIL_ProxyUsername      = 'PROFIL_PROXY_USERNAME';



   TPL_VAR_ROBOT_PROFIL_NavAgent  = 'PROFIL_WEB_AGENT';
   TPL_VAR_ROBOT_PROFIL_NavAcceptLanguage      = 'PROFIL_WEB_ACCEPTLANGUAGE';
   TPL_VAR_ROBOT_PROFIL_NavAccept      = 'PROFIL_WEB_ACCEPT';


   // onglet profil
   TPL_VAR_ROBOT_PROFIL_CURR_GALAXIE_SPINEDIT   = 'PROFIL_GALAXY_SE';
   TPL_VAR_ROBOT_PROFIL_CURR_GALAXIE_LOADED     = 'PROFIL_GALAXY_LOADED';
   TPL_COND_ROBOT_PROFIL_GALAXIE_LOADED     = 'COND_GALAXY_LOADED';


   TPL_VAR_ROBOT_PROFIL_STATS_RAPPORTS_NB       = 'PROFIL_RAPPORT_STATS_COUNT';
   TPL_VAR_ROBOT_PROFIL_STATS_RAPPORTS_FILENAME = 'PROFIL_RAPPORT_FILENAME';

   TPL_VAR_ROBOT_PROFIL_STATS_GALAXY_NB       = 'PROFIL_GALAXY_STATS_COUNT';
   TPL_VAR_ROBOT_PROFIL_STATS_GALAXY_FILENAME = 'PROFIL_GALAXY_FILENAME';




   // selection de profil
   TPL_LOOP_PROFILW_LIST = 'LOOP_LIST_PROFILS';
   TPL_VARLOOP_PROFIL_NAME = 'PROFILNAME';
   TPL_VARLOOP_PROFIL_ID   = 'PROFILID';



   //
   // Le spider
   //
   TPL_VAR_SCAN_SYSYEM_START = 'SCAN_SYSTEM_START';
   TPL_VAR_SCAN_SYSTEM_END   = 'SCAN_SYSTEM_END';
   TPL_VAR_SCAN_DUREE_SKIP   = 'SCAN_DUREE_SKIP';


   // valeur des champs lorsque l'on post des données
   TPL_VAR_ONPOST_SYSYEM_START   = 'systeme_start';
   TPL_VAR_ONPOST_SYSTEM_END     = 'systeme_end';
   TPL_VAR_ONPOST_DUREE_KEEP     = 'duree_keep';
   TPL_VAR_ONPOST_DUREE_RECENT   = 'duree_recent';
   TPL_VAR_ONPOST_SONDER_INACTIFS_AFTER  = 'sondeinactifafter';
   TPL_VAR_ONPOST_PLANET_INDEX   = 'planete';



   // status
   TPL_LOOP_STATUS_VIEW    = 'LOOP_STATUS_MSG';
   TPL_VARLOOP_LIGNE         = 'LINE';
   TPL_VARLOOP_IDLIGNE       = 'LINE_NUMBER';
   TPL_VARLOOP_IDROBOTLIGNE  = 'LINE_ID';

   TPL_VAR_STATUS_TOTAL_MSG   = 'STATUS_TOTALMSG';

   TPL_COND_STATUS_TOTAL_MSG  = 'COND_TOTALMSG';


   //
   // Les sondages
   //
   TPL_VAR_SONDAGE_SYSYEM_START = 'SONDAGE_SYSTEM_START';
   TPL_VAR_SONDAGE_SYSTEM_END   = 'SONDAGE_SYSTEM_END';
   TPL_VAR_SONDAGE_DUREE_KEEP   = 'SONDAGE_DUREE_KEEP';
   TPL_VAR_SONDAGE_DUREE_RECENT = 'SONDAGE_DUREE_RECENT';

   TPL_VAR_SONDAGE_MAX_DEFENSE  = 'SONDAGE_MAX_DEFENSE_SCORE';
   TPL_COND_SONDAGE_MAX_DEFENSE  = 'COND_SONDAGE_MAX_DEFENSE_SCORE';

   TPL_VAR_SONDAGE_MIN_PT     = 'SONDAGE_MIN_PT';
   TPL_COND_SONDAGE_MIN_PT    = 'COND_SONDAGE_MIN_PT';

   TPL_COND_SONDAGE_IGNORE_ATTAQUER_2H     = 'COND_SONDAGE_IGNORE_ATTACK_2H';
   TPL_COND_SONDAGE_IGNORE_ATTAQUER_12H    = 'COND_SONDAGE_IGNORE_ATTACK_12H';
   TPL_COND_SONDAGE_IGNORE_ATTAQUER_24H    = 'COND_SONDAGE_IGNORE_ATTACK_24H';

   TPL_COND_SONDAGE_PARPOINTS_COND_OR     = 'COND_SONDAGE_PP_COND_OR';
   TPL_COND_SONDAGE_PARPOINTS_EXCLURE_INACTIFS = 'COND_SONDAGE_PP_EXCLURE_INACTIFS';

   TPL_COND_SONDAGE_PARPOINTS_GLOBAL_INCLURE_NON_CLASSES    = 'COND_SONDAGE_PP_GLOBAL_INC_NONCLASSES';
   TPL_COND_SONDAGE_PARPOINTS_FLOTTE_INCLURE_NON_CLASSES    = 'COND_SONDAGE_PP_FLOTTE_INC_NONCLASSES';

   TPL_VAR_SONDAGE_PARPOINTS_MAX_GLOBALES  = 'SONDAGE_PP_MAX_STATS_GLOBALES';
   TPL_VAR_SONDAGE_PARPOINTS_MAX_FLOTTES   = 'SONDAGE_PP_MAX_STATS_FLOTTES';

   TPL_COND_SONDAGE_NB_ELEMENTS = 'SONDAGE_NB_ELEMENTS';
   TPL_COND_SONDAGE_EN_COURS    = 'COND_SONDAGE_EN_COURS';


   // valeur des champs lorsque l'on post des données
   TPL_VAR_ONPOST_PP_STATS_GLOBALES_MAX  = 'stats_globales_max';
   TPL_VAR_ONPOST_PP_STATS_GLOBALES_INC_NON_CLASSES = 'stats_globales_incl_nc';

   TPL_VAR_ONPOST_PP_STATS_FLOTTES_MAX   = 'stats_flottes_max';
   TPL_VAR_ONPOST_PP_STATS_FLOTTES_INC_NON_CLASSES = 'stats_flottes_incl_nc';


   TPL_VAR_ONPOST_PP_STATS_EXCLURE_INACTIFS = 'stats_exclure_inactifs';
   TPL_VAR_ONPOST_PP_STATS_CONDITION = 'stats_cond';
   TPL_VAR_ONPOST_PP_STATS_CONDITION_VALUE_OR = '1';

   TPL_VAR_ONPOST_OPT_MAX_SCORE_DEF        = 'sondage_opt_maxdef';
   TPL_VAR_ONPOST_OPT_MAX_SCORE_DEF_USAGE  = 'sondage_opt_maxdef_used';

   TPL_VAR_ONPOST_OPT_MIN_PT            = 'sondage_opt_minpt';
   TPL_VAR_ONPOST_OPT_MIN_PT_USAGE      = 'sondage_opt_minpt_used';

   TPL_VAR_ONPOST_OPT_IGNORE_ATT_2H      = 'sondage_opt_ignore_att_2h';
   TPL_VAR_ONPOST_OPT_IGNORE_ATT_12H      = 'sondage_opt_ignore_att_12h';
   TPL_VAR_ONPOST_OPT_IGNORE_ATT_24H      = 'sondage_opt_ignore_att_24h';


   //
   // Le joueur
   //
   TPL_VAR_PLAYER_GAME_SESSION_ID     = 'PLAYER_SESSION_ID';
   TPL_VAR_PLAYER_URL_DIR             = 'PLAYER_GAME_URL';
   TPL_COND_ROBOT_DEJA_LOGGER_UNEFOIS = 'COND_PLAYER_DEJA_LOGGER_UNE_FOIS';
   TPL_COND_ROBOT_DOIT_SE_RELOGGER    = 'COND_PLAYER_DOIT_SE_RELOGGER';



   //
   // Liste des planètes
   //

   // Le nom de la boucle
   TPL_LOOP_PLANETELIST = 'LOOP_PLANETES';
   TPL_VARLOOP_PLANETENAME  = 'NAME';
   TPL_VARLOOP_PLANETECOORD = 'COORD';
   TPL_VARLOOP_ID           = 'ID';
   TPL_COND_PLANETE_ISSELECTED   = 'PLANETE_IS_SELECTED';


   // Les conditions
   TPL_COND_PLANETE_COUNT = 'COND_PLANETE_COUNT';




   //////////////////////////////////////
   // Operation de postage de données
   //////////////////////////////////////

   // définit si la page est affiché suite à une requete POST (0 = non, 1 = oui)
   TPL_COND_ISFROMPOST_REQ   = 'COND_IS_POST';

   // définit l'état de l'opération (0 = echec, 1 = réussit)
   TPL_COND_OPERATION_STATE  = 'COND_OPERATION_STATE';



   //////////////////////////////////////
   // Template qui sera ajouté sur les pages de jeu
   //////////////////////////////////////

   TPL_LOOP_APERCU_VAGUE = 'LOOP_FLOTTE';


var
   MotorTemplate: TTemplatePage;


implementation


initialization
    MotorTemplate := TTemplatePage.Create;

finalization
    MotorTemplate.Free;



end.
